/**
 * 日志类
 */
import hilog from '@ohos.hilog'

export class Logger {
  private static domain: number = 0xFF00
  private static prefix: string = 'FangMeiTuan'
  private static format: string = '%{public}s, ${public}s'

  /*
    调试
   */
  static debug(...args: string[]): void {
    hilog.debug(Logger.domain, Logger.prefix, Logger.format, args)
  }

  /*
     警告
   */
  static warn(...args: string[]): void {
    hilog.warn(Logger.domain, Logger.prefix, Logger.format, args)
  }

  /*
    错误
   */
  static error(...args: string[]): void {
    hilog.error(Logger.domain, Logger.prefix, Logger.prefix, args)
  }

  /*
    信息
   */
  static info(...args: string[]): void {
    hilog.info(Logger.domain, Logger.prefix, Logger.format, args)
  }

}